package jsproto.c2s.cclass.room;

import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 机器人房间配置
 * 
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
@Data
public class RobotRoomConfig2 implements Serializable {
	// 基础分
	private int deskNum;
	// 最小值
	private int minTime;
	// 最大值
	private int maxTime;

	public RobotRoomConfig2() {
		super();
	}

	public RobotRoomConfig2(int deskNum, int minTime, int maxTime) {
		this.deskNum = deskNum;
		this.minTime = minTime;
		this.maxTime = maxTime;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
	
	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

}
